//
//  NYProgressView.m
//  百思不得姐
//
//  Created by Apple on 15/8/25.
//  Copyright (c) 2015年 Neal. All rights reserved.
//

#import "NYProgressView.h"

@implementation NYProgressView

- (void)awakeFromNib
{
    self.roundedCorners  = 5;
    self.progressLabel.textColor = [UIColor whiteColor];
}

- (void)setProgress:(CGFloat)progress
{
    [super setProgress:progress];
    
    NSString *text = [NSString stringWithFormat:@"%.1f%%",progress *100];
    self.progressLabel.text = [text stringByReplacingOccurrencesOfString:@"-" withString:@""];
}
@end
